<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{$siteInfo['title']}-{$siteInfo['subtitle']}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="stylesheet" href="/themes/amaze/assets/css/amazeui.min.css">
    <link rel="stylesheet" href="/themes/amaze/assets/css/common.css">
</head>
<body>
{include file="common/header" /}
<div class="am-container">
    <div style="margin: 2px;width: 40%;height: auto;float: left">
        <a href="/shop"><button type="button" class="am-btn am-btn-danger">所有商品({$allGoodCount})</button></a>
    </div>
        {volist name="cateList" id="vo"}
        <div style="margin: 2px;width: 40%;height: auto;float: left">
            <a href="/shop/cate-{$vo.id}.html"><button type="button" class="am-btn am-btn-secondary">{$vo.cate_name}({$vo.goodsCount})</button></a>
        </div>
        {/volist}
</div>
<!--商品列表-->
<ul data-am-widget="gallery" class="am-gallery sm-block-grid-2 md-block-grid-3 lg-block-grid-4 am-gallery-bordered">
    {volist name="goodsList" id="vo"}
    <li>
        <div class="am-gallery-item">
            <a href="{:url('/shop/goods-'.$vo.id)}">
                <img src="{$vo.image_cover|default='/themes/default/static/images/default/goods-cover.jpg'}"
                     alt="{$vo.title}" />
                <h3 class="am-gallery-title">{$vo.title}</h3>
                <div class="am-gallery-desc">已售:{$vo.sales_volume} <span style="float: right;color: red">￥{$vo.price}</span></div>
            </a>
        </div>
    </li>
    {/volist}
    {$goodsList|raw}
</ul>
{include file="common/footer" /}
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="/themes/amaze/assets/js/amazeui.min.js"></script>
<script src="/themes/amaze/assets/js/common.js"></script>
</body>
</html>